package com.qst.test3;

public class Rectangle extends Shape{
    private int width;
    private int height;
    public Rectangle(int width,int height){}
    public double getPer(){
        return (height+width)*2;
    }
    public double getArea(){
        return height*width;
    }
    public void showAll(){
        System.out.println("宽为"+this.width);
        System.out.println("长为"+this.height);
    }

}
